const WebpackMerge = require('webpack-merge');
const cleanWebpackPlugin = require('clean-webpack-plugin');

var config = {
    mode: 'production',
    plugins: [
        new cleanWebpackPlugin(['dist'])
    ]
};

module.exports = function (env, defaultConfig) {
    return WebpackMerge(defaultConfig, config);;
};